package org.example.task.converter;

import org.example.task.model.dto.department.CreateDeptDTO;
import org.example.task.model.dto.department.UpdateDeptDTO;
import org.example.task.model.po.Department;
import org.example.task.model.vo.department.DeptVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface DeptConverterMapper {
    Department createDeptToDept(CreateDeptDTO createDeptDTO);
    Department updateDeptToDept(UpdateDeptDTO updateDeptDTO);
    List<DeptVO> deptToDeptVOList(List<Department> deptList);
}
